﻿using EFCoreLib01;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System.Diagnostics;

namespace AspNetCorePrj.Controllers
{

    public class HomeController : Controller
    {
        private readonly ILogger<HomeController> _logger;
   

        private readonly IServiceProvider _serviceProvider;
        private readonly IUnitOfWorkManager _unitOfWorkManager;

        public HomeController(ILogger<HomeController> logger,IServiceProvider serviceProvider)
        {
            _logger = logger;

            _serviceProvider = serviceProvider;

            _unitOfWorkManager = _serviceProvider.GetRequiredService<IUnitOfWorkManager>();
        }

        public IActionResult Index()
        {
            return View();
        }

        public IActionResult Privacy()
        {
            return View();
        }

       
    }
}